//
//  BaseViewController.h
//  Feast
//
//  Created by 胡光健 on 2017/8/23.
//  Copyright © 2017年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BaseViewController : UIViewController
@property (nonatomic, copy) NSString *navTitle;
@property (nonatomic, copy) NSString *leftNavImageName;
@property (nonatomic, copy) NSString *rightNavImageName;
@property (nonatomic, copy) NSString *leftNavTitle;
@property (nonatomic, copy) NSString *rightNavTitle;

@property (nonatomic, strong) FMDatabase *db;
@property(nonatomic,strong) NSData * data;
@property (nonatomic, strong) FMDatabase *homeDB;

@property(nonatomic,strong) NSNumber * speedingSum;
@property(nonatomic,strong) NSNumber * keepAvg;

- (void)didClickLeftNavAction;
- (void)didClickRightNavAction;

-(void)configSegmentWithleftTitle:(NSString *)leftTitle rightTitle:(NSString *)rightTitle;
-(void)segmentCilik:(id)sender;

-(void)findFMDBWithData:(void (^)(NSMutableArray *dataArray))data;
-(void)createFMDB;
-(void)createHomeFMDB;
//-(void)findHomeFMDBWithData:(void (^)(NSMutableArray *dataArray))data  keep:(void(^)(NSMutableArray *keepArray))keep;
-(void)findHomeFMDBWithData:(void (^)(NSMutableArray *dataArray ,NSNumber * speedingSum))data keep:(void(^)(NSMutableArray *keepArray, NSNumber * keepSum))keep;
@end
